<!DOCTYPE html>
<html lang="en">
  <head>
    <title>MobilePlayerViewController Class Reference</title>
    <link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
    <link rel="stylesheet" type="text/css" href="../css/highlight.css" />
    <meta charset='utf-8'>
    <script src="../js/jquery.min.js" defer></script>
    <script src="../js/jazzy.js" defer></script>
    
  </head>
  <body>
    <a name="//apple_ref/swift/Class/MobilePlayerViewController" class="dashAnchor"></a>
    <a title="MobilePlayerViewController Class Reference"></a>
    <header>
      <div class="content-wrapper">
        <p><a href="../index.html">MobilePlayer Docs</a> (100% documented)</p>
        <p class="header-right"><a href="https://github.com/mobileplayer/mobileplayer-ios"><img src="../img/gh.png"/>View on GitHub</a></p>
      </div>
    </header>
    <div class="content-wrapper">
      <p id="breadcrumbs">
        <a href="../index.html">MobilePlayer Reference</a>
        <img id="carat" src="../img/carat.png" />
        MobilePlayerViewController Class Reference
      </p>
    </div>
    <div class="content-wrapper">
      <nav class="sidebar">
        <ul class="nav-groups">
          <li class="nav-group-name">
            <a href="../Classes.html">Classes</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Classes/BarConfig.html">BarConfig</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/ButtonConfig.html">ButtonConfig</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/ElementConfig.html">ElementConfig</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/LabelConfig.html">LabelConfig</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/MobilePlayerConfig.html">MobilePlayerConfig</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/MobilePlayerOverlayViewController.html">MobilePlayerOverlayViewController</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/MobilePlayerViewController.html">MobilePlayerViewController</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/MobilePlayerViewController/State.html">– State</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/SliderConfig.html">SliderConfig</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/ToggleButtonConfig.html">ToggleButtonConfig</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/WatermarkConfig.html">WatermarkConfig</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Global Variables.html">Global Variables</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Global Variables.html#/s:v12MobilePlayer41MobilePlayerDidEncounterErrorNotificationSS">MobilePlayerDidEncounterErrorNotification</a>
              </li>
              <li class="nav-group-task">
                <a href="../Global Variables.html#/s:v12MobilePlayer28MobilePlayerErrorUserInfoKeySS">MobilePlayerErrorUserInfoKey</a>
              </li>
              <li class="nav-group-task">
                <a href="../Global Variables.html#/s:v12MobilePlayer38MobilePlayerStateDidChangeNotificationSS">MobilePlayerStateDidChangeNotification</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Enums.html">Enums</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Enums/ElementType.html">ElementType</a>
              </li>
              <li class="nav-group-task">
                <a href="../Enums/ElementWidthCalculation.html">ElementWidthCalculation</a>
              </li>
              <li class="nav-group-task">
                <a href="../Enums/WatermarkPosition.html">WatermarkPosition</a>
              </li>
            </ul>
          </li>
        </ul>
      </nav>
      <article class="main-content">
        <section>
          <section class="section">
            <h1>MobilePlayerViewController</h1>
              <div class="declaration">
                <div class="language">
                  <pre class="highlight"><code><span class="n">open</span> <span class="kd">class</span> <span class="kt">MobilePlayerViewController</span><span class="p">:</span> <span class="kt">MPMoviePlayerViewController</span></code></pre>

                </div>
              </div>
            <p>A view controller for playing media content.</p>

          </section>
          <section class="section task-group-section">
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Playback%20State"></a>
                <a name="//apple_ref/swift/Section/Playback State" class="dashAnchor"></a>
                <a href="#/Playback%20State">
                  <h3 class="section-name">Playback State</h3>
                </a>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:OC12MobilePlayer26MobilePlayerViewController5State"></a>
                    <a name="//apple_ref/swift/Enum/State" class="dashAnchor"></a>
                    <a class="token" href="#/s:OC12MobilePlayer26MobilePlayerViewController5State">State</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Playback state.</p>

                        <a href="../Classes/MobilePlayerViewController/State.html" class="slightly-smaller">See more</a>
                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">enum</span> <span class="kt">State</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:vC12MobilePlayer26MobilePlayerViewController13previousStateOS0_5State"></a>
                    <a name="//apple_ref/swift/Property/previousState" class="dashAnchor"></a>
                    <a class="token" href="#/s:vC12MobilePlayer26MobilePlayerViewController13previousStateOS0_5State">previousState</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>The previous value of <code><a href="../Classes/MobilePlayerViewController.html#/s:vC12MobilePlayer26MobilePlayerViewController5stateOS0_5State">state</a></code>. Default is <code>.Idle</code>.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">private(set)</span> <span class="k">var</span> <span class="nv">previousState</span><span class="p">:</span> <span class="kt"><a href="../Classes/MobilePlayerViewController/State.html">State</a></span> <span class="o">=</span> <span class="o">.</span><span class="n">idle</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:vC12MobilePlayer26MobilePlayerViewController5stateOS0_5State"></a>
                    <a name="//apple_ref/swift/Property/state" class="dashAnchor"></a>
                    <a class="token" href="#/s:vC12MobilePlayer26MobilePlayerViewController5stateOS0_5State">state</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Current <code><a href="../Classes/MobilePlayerViewController/State.html">State</a></code> of the player. Default is <code>.Idle</code>.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">private(set)</span> <span class="k">var</span> <span class="nv">state</span><span class="p">:</span> <span class="kt"><a href="../Classes/MobilePlayerViewController/State.html">State</a></span> <span class="o">=</span> <span class="o">.</span><span class="n">idle</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/TODO:%20Move%20inside%20MobilePlayerConfig"></a>
                <a name="//apple_ref/swift/Section/TODO: Move inside MobilePlayerConfig" class="dashAnchor"></a>
                <a href="#/TODO:%20Move%20inside%20MobilePlayerConfig">
                  <h3 class="section-name">TODO: Move inside MobilePlayerConfig</h3>
                </a>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:ZvC12MobilePlayer26MobilePlayerViewController12globalConfigCS_18MobilePlayerConfig"></a>
                    <a name="//apple_ref/swift/Variable/globalConfig" class="dashAnchor"></a>
                    <a class="token" href="#/s:ZvC12MobilePlayer26MobilePlayerViewController12globalConfigCS_18MobilePlayerConfig">globalConfig</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>The global player configuration object that is loaded by a player if none is passed for its
initialization.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">globalConfig</span> <span class="o">=</span> <span class="kt"><a href="../Classes/MobilePlayerConfig.html">MobilePlayerConfig</a></span><span class="p">()</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:vC12MobilePlayer26MobilePlayerViewController6configCS_18MobilePlayerConfig"></a>
                    <a name="//apple_ref/swift/Property/config" class="dashAnchor"></a>
                    <a class="token" href="#/s:vC12MobilePlayer26MobilePlayerViewController6configCS_18MobilePlayerConfig">config</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>The configuration object that was used to initialize the player, may point to the global player configuration
object.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="k">let</span> <span class="nv">config</span><span class="p">:</span> <span class="kt"><a href="../Classes/MobilePlayerConfig.html">MobilePlayerConfig</a></span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Mapped%20Properties"></a>
                <a name="//apple_ref/swift/Section/Mapped Properties" class="dashAnchor"></a>
                <a href="#/Mapped%20Properties">
                  <h3 class="section-name">Mapped Properties</h3>
                </a>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:vC12MobilePlayer26MobilePlayerViewController5titleGSqSS_"></a>
                    <a name="//apple_ref/swift/Property/title" class="dashAnchor"></a>
                    <a class="token" href="#/s:vC12MobilePlayer26MobilePlayerViewController5titleGSqSS_">title</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>A localized string that represents the video this controller manages. Setting a value will update the title label
in the user interface if one exists.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="n">open</span> <span class="k">override</span> <span class="k">var</span> <span class="nv">title</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Initialization"></a>
                <a name="//apple_ref/swift/Section/Initialization" class="dashAnchor"></a>
                <a href="#/Initialization">
                  <h3 class="section-name">Initialization</h3>
                </a>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC12MobilePlayer26MobilePlayerViewControllercFT10contentURLV10Foundation3URL6configCS_18MobilePlayerConfig21prerollViewControllerGSqCS_33MobilePlayerOverlayViewController_26pauseOverlayViewControllerGSqS4__22postrollViewControllerGSqS4___S0_"></a>
                    <a name="//apple_ref/swift/Method/init(contentURL:config:prerollViewController:pauseOverlayViewController:postrollViewController:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC12MobilePlayer26MobilePlayerViewControllercFT10contentURLV10Foundation3URL6configCS_18MobilePlayerConfig21prerollViewControllerGSqCS_33MobilePlayerOverlayViewController_26pauseOverlayViewControllerGSqS4__22postrollViewControllerGSqS4___S0_">init(contentURL:config:prerollViewController:pauseOverlayViewController:postrollViewController:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Initializes a player with content given by <code>contentURL</code>. If provided, the overlay view controllers used to
initialize the player should be different instances from each other.</p>

<ul>
<li>parameters:

<ul>
<li>contentURL: URL of the content that will be used for playback.</li>
<li>config: Player configuration. Defaults to <code><a href="../Classes/MobilePlayerViewController.html#/s:ZvC12MobilePlayer26MobilePlayerViewController12globalConfigCS_18MobilePlayerConfig">globalConfig</a></code>.</li>
<li>prerollViewController: Pre-roll view controller. Defaults to <code>nil</code>.</li>
<li>pauseOverlayViewController: Pause overlay view controller. Defaults to <code>nil</code>.</li>
<li>postrollViewController: Post-roll view controller. Defaults to <code>nil</code>.</li>
</ul></li>
</ul>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="nf">init</span><span class="p">(</span><span class="nv">contentURL</span><span class="p">:</span> <span class="kt">URL</span><span class="p">,</span>
              <span class="nv">config</span><span class="p">:</span> <span class="kt"><a href="../Classes/MobilePlayerConfig.html">MobilePlayerConfig</a></span> <span class="o">=</span> <span class="kt">MobilePlayerViewController</span><span class="o">.</span><span class="n"><a href="../Classes/MobilePlayerViewController.html#/s:ZvC12MobilePlayer26MobilePlayerViewController12globalConfigCS_18MobilePlayerConfig">globalConfig</a></span><span class="p">,</span>
              <span class="nv">prerollViewController</span><span class="p">:</span> <span class="kt"><a href="../Classes/MobilePlayerOverlayViewController.html">MobilePlayerOverlayViewController</a></span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
              <span class="nv">pauseOverlayViewController</span><span class="p">:</span> <span class="kt"><a href="../Classes/MobilePlayerOverlayViewController.html">MobilePlayerOverlayViewController</a></span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
              <span class="nv">postrollViewController</span><span class="p">:</span> <span class="kt"><a href="../Classes/MobilePlayerOverlayViewController.html">MobilePlayerOverlayViewController</a></span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>contentURL</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>URL of the content that will be used for playback.</p>

                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>config</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Player configuration. Defaults to <code>globalConfig</code>.</p>

                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>prerollViewController</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Pre-roll view controller. Defaults to <code>nil</code>.</p>

                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>pauseOverlayViewController</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Pause overlay view controller. Defaults to <code>nil</code>.</p>

                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>postrollViewController</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Post-roll view controller. Defaults to <code>nil</code>.</p>

                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC12MobilePlayer26MobilePlayerViewControllercFT5coderCSo7NSCoder_GSqS0__"></a>
                    <a name="//apple_ref/swift/Method/init(coder:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC12MobilePlayer26MobilePlayerViewControllercFT5coderCSo7NSCoder_GSqS0__">init(coder:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Returns a player initialized from data in a given unarchiver. <code><a href="../Classes/MobilePlayerViewController.html#/s:ZvC12MobilePlayer26MobilePlayerViewController12globalConfigCS_18MobilePlayerConfig">globalConfig</a></code> is used for configuration in this
case. In most cases the other intializer should be used.</p>

<ul>
<li>parameters:

<ul>
<li>coder: An unarchiver object.</li>
</ul></li>
</ul>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">required</span> <span class="nf">init</span><span class="p">?(</span><span class="n">coder</span> <span class="nv">aDecoder</span><span class="p">:</span> <span class="kt">NSCoder</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>coder</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An unarchiver object.</p>

                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/View%20Controller%20Lifecycle"></a>
                <a name="//apple_ref/swift/Section/View Controller Lifecycle" class="dashAnchor"></a>
                <a href="#/View%20Controller%20Lifecycle">
                  <h3 class="section-name">View Controller Lifecycle</h3>
                </a>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC12MobilePlayer26MobilePlayerViewController11viewDidLoadFT_T_"></a>
                    <a name="//apple_ref/swift/Method/viewDidLoad()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC12MobilePlayer26MobilePlayerViewController11viewDidLoadFT_T_">viewDidLoad()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Called after the controller&#39;s view is loaded into memory.</p>

<p>This method is called after the view controller has loaded its view hierarchy into memory. This method is
called regardless of whether the view hierarchy was loaded from a nib file or created programmatically in the
<code>loadView</code> method. You usually override this method to perform additional initialization on views that were
loaded from nib files.</p>

<p>If you override this method make sure you call super&rsquo;s implementation.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="n">open</span> <span class="k">override</span> <span class="kd">func</span> <span class="nf">viewDidLoad</span><span class="p">()</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC12MobilePlayer26MobilePlayerViewController22viewWillLayoutSubviewsFT_T_"></a>
                    <a name="//apple_ref/swift/Method/viewWillLayoutSubviews()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC12MobilePlayer26MobilePlayerViewController22viewWillLayoutSubviewsFT_T_">viewWillLayoutSubviews()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Called to notify the view controller that its view is about to layout its subviews.</p>

<p>When a view&#39;s bounds change, the view adjusts the position of its subviews. Your view controller can override
this method to make changes before the view lays out its subviews.</p>

<p>The default implementation of this method sets the frame of the controls view.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="n">open</span> <span class="k">override</span> <span class="kd">func</span> <span class="nf">viewWillLayoutSubviews</span><span class="p">()</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC12MobilePlayer26MobilePlayerViewController14viewWillAppearFSbT_"></a>
                    <a name="//apple_ref/swift/Method/viewWillAppear(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC12MobilePlayer26MobilePlayerViewController14viewWillAppearFSbT_">viewWillAppear(_:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Notifies the view controller that its view is about to be added to a view hierarchy.</p>

<p>If <code>true</code>, the view is being added to the window using an animation.</p>

<p>The default implementation of this method hides the status bar.</p>

<ul>
<li>parameters:

<ul>
<li>animated: If <code>true</code>, the view is being added to the window using an animation.</li>
</ul></li>
</ul>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="n">open</span> <span class="k">override</span> <span class="kd">func</span> <span class="nf">viewWillAppear</span><span class="p">(</span><span class="n">_</span> <span class="nv">animated</span><span class="p">:</span> <span class="kt">Bool</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC12MobilePlayer26MobilePlayerViewController17viewWillDisappearFSbT_"></a>
                    <a name="//apple_ref/swift/Method/viewWillDisappear(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC12MobilePlayer26MobilePlayerViewController17viewWillDisappearFSbT_">viewWillDisappear(_:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Notifies the view controller that its view is about to be removed from a view hierarchy.</p>

<p>If <code>true</code>, the disappearance of the view is being animated.</p>

<p>The default implementation of this method stops playback and restores status bar appearance to how it was before
the view appeared.</p>

<ul>
<li>parameters:

<ul>
<li>animated: If <code>true</code>, the disappearance of the view is being animated.</li>
</ul></li>
</ul>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="n">open</span> <span class="k">override</span> <span class="kd">func</span> <span class="nf">viewWillDisappear</span><span class="p">(</span><span class="n">_</span> <span class="nv">animated</span><span class="p">:</span> <span class="kt">Bool</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Playback"></a>
                <a name="//apple_ref/swift/Section/Playback" class="dashAnchor"></a>
                <a href="#/Playback">
                  <h3 class="section-name">Playback</h3>
                </a>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:vC12MobilePlayer26MobilePlayerViewController14shouldAutoplaySb"></a>
                    <a name="//apple_ref/swift/Property/shouldAutoplay" class="dashAnchor"></a>
                    <a class="token" href="#/s:vC12MobilePlayer26MobilePlayerViewController14shouldAutoplaySb">shouldAutoplay</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Indicates whether content should begin playback automatically.</p>

<p>The default value of this property is true. This property determines whether the playback of network-based
content begins automatically when there is enough buffered data to ensure uninterrupted playback.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">shouldAutoplay</span><span class="p">:</span> <span class="kt">Bool</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC12MobilePlayer26MobilePlayerViewController4playFT_T_"></a>
                    <a name="//apple_ref/swift/Method/play()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC12MobilePlayer26MobilePlayerViewController4playFT_T_">play()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Initiates playback of current content.</p>

<p>Starting playback causes dismiss to be called on prerollViewController, pauseOverlayViewController
and postrollViewController.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">play</span><span class="p">()</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC12MobilePlayer26MobilePlayerViewController5pauseFT_T_"></a>
                    <a name="//apple_ref/swift/Method/pause()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC12MobilePlayer26MobilePlayerViewController5pauseFT_T_">pause()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Pauses playback of current content.</p>

<p>Pausing playback causes pauseOverlayViewController to be shown.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">pause</span><span class="p">()</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC12MobilePlayer26MobilePlayerViewController4stopFT_T_"></a>
                    <a name="//apple_ref/swift/Method/stop()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC12MobilePlayer26MobilePlayerViewController4stopFT_T_">stop()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Ends playback of current content.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">stop</span><span class="p">()</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Video%20Rendering"></a>
                <a name="//apple_ref/swift/Section/Video Rendering" class="dashAnchor"></a>
                <a href="#/Video%20Rendering">
                  <h3 class="section-name">Video Rendering</h3>
                </a>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC12MobilePlayer26MobilePlayerViewController8fitVideoFT_T_"></a>
                    <a name="//apple_ref/swift/Method/fitVideo()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC12MobilePlayer26MobilePlayerViewController8fitVideoFT_T_">fitVideo()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Makes playback content fit into player&rsquo;s view.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">fitVideo</span><span class="p">()</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC12MobilePlayer26MobilePlayerViewController9fillVideoFT_T_"></a>
                    <a name="//apple_ref/swift/Method/fillVideo()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC12MobilePlayer26MobilePlayerViewController9fillVideoFT_T_">fillVideo()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Makes playback content fill player&rsquo;s view.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">fillVideo</span><span class="p">()</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC12MobilePlayer26MobilePlayerViewController22handleContentDoubleTapFT_T_"></a>
                    <a name="//apple_ref/swift/Method/handleContentDoubleTap()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC12MobilePlayer26MobilePlayerViewController22handleContentDoubleTapFT_T_">handleContentDoubleTap()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Makes playback content switch between fill/fit modes when content area is double tapped. Overriding this method
is recommended if you want to change this behavior.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">handleContentDoubleTap</span><span class="p">()</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Social"></a>
                <a name="//apple_ref/swift/Section/Social" class="dashAnchor"></a>
                <a href="#/Social">
                  <h3 class="section-name">Social</h3>
                </a>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:vC12MobilePlayer26MobilePlayerViewController13activityItemsGSqGSaP___"></a>
                    <a name="//apple_ref/swift/Property/activityItems" class="dashAnchor"></a>
                    <a class="token" href="#/s:vC12MobilePlayer26MobilePlayerViewController13activityItemsGSqGSaP___">activityItems</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>An array of activity items that will be used for presenting a <code>UIActivityViewController</code> when the action
button is pressed (if it exists). If content is playing, it is paused automatically at presentation and will
continue after the controller is dismissed. Override <code>showContentActions()</code> if you want to change the button&rsquo;s
behavior.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">activityItems</span><span class="p">:</span> <span class="p">[</span><span class="kt">Any</span><span class="p">]?</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC12MobilePlayer26MobilePlayerViewController18showContentActionsFT10sourceViewGSqCSo6UIView__T_"></a>
                    <a name="//apple_ref/swift/Method/showContentActions(sourceView:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC12MobilePlayer26MobilePlayerViewController18showContentActionsFT10sourceViewGSqCSo6UIView__T_">showContentActions(sourceView:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Method that is called when a control interface button with identifier <q>action</q> is tapped. Presents a
<code>UIActivityViewController</code> with <code><a href="../Classes/MobilePlayerViewController.html#/s:vC12MobilePlayer26MobilePlayerViewController13activityItemsGSqGSaP___">activityItems</a></code> set as its activity items. If content is playing, it is paused
automatically at presentation and will continue after the controller is dismissed. Overriding this method is
recommended if you want to change this behavior.</p>

<p>parameters:
  - sourceView: On iPads the activity view controller is presented as a popover and a source view needs to
    provided or a crash will occur.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">showContentActions</span><span class="p">(</span><span class="nv">sourceView</span><span class="p">:</span> <span class="kt">UIView</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Controls"></a>
                <a name="//apple_ref/swift/Section/Controls" class="dashAnchor"></a>
                <a href="#/Controls">
                  <h3 class="section-name">Controls</h3>
                </a>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:vC12MobilePlayer26MobilePlayerViewController14controlsHiddenSb"></a>
                    <a name="//apple_ref/swift/Property/controlsHidden" class="dashAnchor"></a>
                    <a class="token" href="#/s:vC12MobilePlayer26MobilePlayerViewController14controlsHiddenSb">controlsHidden</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Indicates if player controls are hidden. Setting its value will animate controls in or out.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">controlsHidden</span><span class="p">:</span> <span class="kt">Bool</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC12MobilePlayer26MobilePlayerViewController31getViewForElementWithIdentifierFSSGSqCSo6UIView_"></a>
                    <a name="//apple_ref/swift/Method/getViewForElementWithIdentifier(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC12MobilePlayer26MobilePlayerViewController31getViewForElementWithIdentifierFSSGSqCSo6UIView_">getViewForElementWithIdentifier(_:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Returns the view associated with given player control element identifier.</p>

<ul>
<li>parameters:

<ul>
<li>identifier: Element identifier.</li>
</ul></li>
</ul>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">getViewForElementWithIdentifier</span><span class="p">(</span><span class="n">_</span> <span class="nv">identifier</span><span class="p">:</span> <span class="kt">String</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">UIView</span><span class="p">?</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>identifier</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Element identifier.</p>

                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>View or nil if element is not found.</p>

                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC12MobilePlayer26MobilePlayerViewController16handleContentTapFT_T_"></a>
                    <a name="//apple_ref/swift/Method/handleContentTap()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC12MobilePlayer26MobilePlayerViewController16handleContentTapFT_T_">handleContentTap()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Hides/shows controls when content area is tapped once. Overriding this method is recommended if you want to change
this behavior.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">handleContentTap</span><span class="p">()</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Overlays"></a>
                <a name="//apple_ref/swift/Section/Overlays" class="dashAnchor"></a>
                <a href="#/Overlays">
                  <h3 class="section-name">Overlays</h3>
                </a>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:vC12MobilePlayer26MobilePlayerViewController21prerollViewControllerGSqCS_33MobilePlayerOverlayViewController_"></a>
                    <a name="//apple_ref/swift/Property/prerollViewController" class="dashAnchor"></a>
                    <a class="token" href="#/s:vC12MobilePlayer26MobilePlayerViewController21prerollViewControllerGSqCS_33MobilePlayerOverlayViewController_">prerollViewController</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>The <code><a href="../Classes/MobilePlayerOverlayViewController.html">MobilePlayerOverlayViewController</a></code> that will be presented on top of the player content at start. If a
controller is set then content will not start playing automatically even if <code><a href="../Classes/MobilePlayerViewController.html#/s:vC12MobilePlayer26MobilePlayerViewController14shouldAutoplaySb">shouldAutoplay</a></code> is <code>true</code>. The
controller will dismiss if user presses the play button or <code><a href="../Classes/MobilePlayerViewController.html#/s:FC12MobilePlayer26MobilePlayerViewController4playFT_T_">play()</a></code> is called.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="k">let</span> <span class="nv">prerollViewController</span><span class="p">:</span> <span class="kt"><a href="../Classes/MobilePlayerOverlayViewController.html">MobilePlayerOverlayViewController</a></span><span class="p">?</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:vC12MobilePlayer26MobilePlayerViewController26pauseOverlayViewControllerGSqCS_33MobilePlayerOverlayViewController_"></a>
                    <a name="//apple_ref/swift/Property/pauseOverlayViewController" class="dashAnchor"></a>
                    <a class="token" href="#/s:vC12MobilePlayer26MobilePlayerViewController26pauseOverlayViewControllerGSqCS_33MobilePlayerOverlayViewController_">pauseOverlayViewController</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>The <code><a href="../Classes/MobilePlayerOverlayViewController.html">MobilePlayerOverlayViewController</a></code> that will be presented on top of the player content whenever playback is
paused. Does not include pauses in playback due to buffering.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="k">let</span> <span class="nv">pauseOverlayViewController</span><span class="p">:</span> <span class="kt"><a href="../Classes/MobilePlayerOverlayViewController.html">MobilePlayerOverlayViewController</a></span><span class="p">?</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:vC12MobilePlayer26MobilePlayerViewController22postrollViewControllerGSqCS_33MobilePlayerOverlayViewController_"></a>
                    <a name="//apple_ref/swift/Property/postrollViewController" class="dashAnchor"></a>
                    <a class="token" href="#/s:vC12MobilePlayer26MobilePlayerViewController22postrollViewControllerGSqCS_33MobilePlayerOverlayViewController_">postrollViewController</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>The <code><a href="../Classes/MobilePlayerOverlayViewController.html">MobilePlayerOverlayViewController</a></code> that will be presented on top of the player content when playback
finishes.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="k">let</span> <span class="nv">postrollViewController</span><span class="p">:</span> <span class="kt"><a href="../Classes/MobilePlayerOverlayViewController.html">MobilePlayerOverlayViewController</a></span><span class="p">?</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC12MobilePlayer26MobilePlayerViewController25showOverlayViewControllerFTCS_33MobilePlayerOverlayViewController14startingAtTimeGSqSd_11forDurationGSqSd__T_"></a>
                    <a name="//apple_ref/swift/Method/showOverlayViewController(_:startingAtTime:forDuration:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC12MobilePlayer26MobilePlayerViewController25showOverlayViewControllerFTCS_33MobilePlayerOverlayViewController14startingAtTimeGSqSd_11forDurationGSqSd__T_">showOverlayViewController(_:startingAtTime:forDuration:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Presents given overlay view controller on top of the player content immediately, or at a given content time for
a given duration. Both starting time and duration parameters should be provided to show a timed overlay.</p>

<ul>
<li>parameters:

<ul>
<li>overlayViewController: The <code><a href="../Classes/MobilePlayerOverlayViewController.html">MobilePlayerOverlayViewController</a></code> to be presented.</li>
<li>startingAtTime: Content time the overlay will be presented at.</li>
<li>forDuration: Added on top of <code>startingAtTime</code> to calculate the content time when overlay will be dismissed.</li>
</ul></li>
</ul>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">showOverlayViewController</span><span class="p">(</span><span class="n">_</span> <span class="nv">overlayViewController</span><span class="p">:</span> <span class="kt"><a href="../Classes/MobilePlayerOverlayViewController.html">MobilePlayerOverlayViewController</a></span><span class="p">,</span>
                                        <span class="n">startingAtTime</span> <span class="nv">presentationTime</span><span class="p">:</span> <span class="kt">TimeInterval</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                                        <span class="n">forDuration</span> <span class="nv">showDuration</span><span class="p">:</span> <span class="kt">TimeInterval</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>overlayViewController</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The <code>MobilePlayerOverlayViewController</code> to be presented.</p>

                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>startingAtTime</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Content time the overlay will be presented at.</p>

                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>forDuration</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Added on top of <code>startingAtTime</code> to calculate the content time when overlay will be dismissed.</p>

                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC12MobilePlayer26MobilePlayerViewController13clearOverlaysFT_T_"></a>
                    <a name="//apple_ref/swift/Method/clearOverlays()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC12MobilePlayer26MobilePlayerViewController13clearOverlaysFT_T_">clearOverlays()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Dismisses all currently presented overlay view controllers and clears any timed overlays.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">clearOverlays</span><span class="p">()</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
          </section>
        </section>
        <section id="footer">
          <p>&copy; 2016 <a class="link" href="https://mobileplayer.io" target="_blank" rel="external">MobilePlayer</a>. All rights reserved. (Last updated: 2016-10-11)</p>
          <p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
        </section>
      </article>
    </div>
  </body>
</div>
</html>
